package com.hello.sky.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hello.sky.model.dto.ShoppingCartDTO;
import com.hello.sky.model.entity.ShoppingCart;
import jakarta.servlet.http.HttpServletRequest;

import java.util.List;

/**
 * <p>
 * 购物车 服务类
 * </p>
 *
 * @author D
 * @since 2024-05-06
 */
public interface ShoppingCartService extends IService<ShoppingCart> {

    void addIntoCart(ShoppingCartDTO dto);

    List<ShoppingCart> getCartByUserId(HttpServletRequest request);

    void subItem(ShoppingCartDTO dto);

    void cleanCart();
}
